]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: fix isChat
authorAlban Browaeys <prahal@yahoo.com>
Fri, 25 May 2012 09:15:57 +0000 (11:15 +0200)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 25 May 2012 17:14:43 +0000 (13:14 -0400)
As part of commit 9e1a2cf the parent _init was moved before the isChat
was set to true. As the parent set it to false isChat is never true
since this commit.

https://bugzilla.gnome.org/show_bug.cgi?id=676806

js/ui/telepathyClient.js

index c38b3f79d64ddea7811a2c3c63fb79271af15fba..f54e4c0001e5690069c168151204d35ba96b3e84 100644 (file)
@@ -420,14 +420,13 @@ const ChatSource = new Lang.Class({
     Extends: MessageTray.Source,
 
     _init: function(account, conn, channel, contact, client) {
-        this.isChat = true;
-
         this._account = account;
         this._contact = contact;
         this._client = client;
 
         this.parent(contact.get_alias());
 
+        this.isChat = true;
         this._pendingMessages = [];
 
         this._conn = conn;